package com.service.gmall.product;

import com.service.gmall.common.annotition.EnableThreadPool;
import com.service.gmall.common.config.RedissonAutoConfiguration;
import com.service.gmall.common.config.Swagger2Config;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author alpha
 * @className: ProductMainApplication
 * @date 2022/8/22 21:03
 * @Description
 */
@EnableFeignClients(basePackages = "com.service.gmall.feign.search") //开启feign
@EnableScheduling //开启定时任务
//@Import({Swagger2Config.class, RedissonAutoConfiguration.class})
@Import({Swagger2Config.class})
@EnableThreadPool
@SpringCloudApplication
@MapperScan("com.service.gmall.product.mapper")
public class ProductMainApplication {
    public static void main(String[] args) {
        SpringApplication.run(ProductMainApplication.class,args);
    }
}
